package(default_visibility = ["//visibility:public"])

load("//tools:ts_library.bzl", "ts_library")

ts_library(
    name = "api",
    srcs = glob(
        ["**/*.ts"],
        exclude = ["utils/**/*.*"],
    ),
    deps = [
        "//cli/api/utils",
        "//common/errors",
        "//common/flags",
        "//common/promises",
        "//common/protos",
        "//common/strings",
        "//core",
        "//core/compilation_sql",
        "//protos:ts",
        "//cli/vm:compile_loader",
        "//sqlx:lexer",
        "//cli/vm:vm",
        "@npm//@google-cloud/bigquery",
        "@npm//@types/fs-extra",
        "@npm//@types/glob",
        "@npm//@types/js-beautify",
        "@npm//@types/js-yaml",
        "@npm//@types/long",
        "@npm//@types/node",
        "@npm//@types/semver",
        "@npm//@types/tmp",
        "@npm//deepmerge",
        "@npm//fs-extra",
        "@npm//glob",
        "@npm//google-sql-syntax-ts",
        "@npm//js-beautify",
        "@npm//js-yaml",
        "@npm//promise-pool-executor",
        "@npm//protobufjs",
        "@npm//semver",
        "@npm//tmp",
    ],
)
